<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %> 
<f:view>
<f:loadBundle basename="coreservlets.prompts" var="prompts"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE><h:outputText value="#{prompts.formTitle}"/></TITLE>
<LINK REL="STYLESHEET"
      HREF="./css/styles.css"
      TYPE="text/css">
 <style type="text/css">
 	.tabStyle {color:blue;}
 </style>
</HEAD>
<BODY>
<CENTER>
<TABLE BORDER=5>
  <TR><TH CLASS="TITLE">
  <h:outputText value="#{prompts.formTitle}"/></TH></TR>
</TABLE>
<P>
<h:form>
  <h:outputText value="#{prompts.emailPrompt}"/>: 
  <h:inputText id="email" value="#{registrationBean.email}" required="true"><f:validator validatorId="org.apache.myfaces.validator.Email"/></h:inputText><f:verbatim><BR/></f:verbatim>
  <t:message id="emailError" for="email" styleClass="error" />
  <h:outputText value="#{prompts.passwordPrompt}"/>: 
  <h:inputSecret value="#{registrationBean.password}"/><f:verbatim><BR/></f:verbatim>
  <h:commandButton value="#{prompts.buttonLabel}" 
                   action="#{registrationBean.register}"/>
   <f:verbatim><br/></f:verbatim><%--
      
  	    <t:panelTabbedPane  bgcolor="#FFFFCC" serverSideTabSwitch="false">
	
	       <f:verbatim> <p> </f:verbatim>
	            <h:outputText value="output text"/>
	      <f:verbatim>  </p> </f:verbatim>

	
	        <t:panelTab id="tab1" label="tab#1" rendered="true">
	                <h:selectBooleanCheckbox id="testCheckBox" value="true"/>
	                <h:outputLabel for="testCheckBox" value="A checkbox"/>
	                <f:verbatim><br/><br/></f:verbatim>
	            <h:inputText id="inp1"/><f:verbatim><br></f:verbatim>
	            <h:inputText id="inp2" required="true" />
	            <h:message for="inp2" showSummary="false" showDetail="true" />
	        </t:panelTab>
	
	        <t:panelTab id="tab2" label="tab#2" rendered="true">
	
	            <t:selectOneRadio value="false">
	                    <f:selectItem itemValue="0" itemLabel="First Choice" />
	                    <f:selectItem itemValue="1" itemLabel="Second Choice" />
	            </t:selectOneRadio>
	
	            <f:verbatim><br/><br/></f:verbatim>
				<h:inputText id="inp3"/>

				<f:verbatim><br/></f:verbatim>
	        </t:panelTab>
	    </t:panelTabbedPane>    
--%></h:form>
</CENTER></BODY></HTML>
</f:view>